package com.general.config;

import org.springframework.core.type.AnnotationMetadata;

/**
 * @description: 从 一个class中获取 {@link AnnotationMetadata}的方法
 * 参考spring {@link ConfigurationClassParser.SourceClass#SourceClass(java.lang.Object)}
 * @author: general
 * @version: 1.0
 * @create: 2021-10-27 21:32
 **/
public class AnnotationMetadaParser {


    public AnnotationMetadata getAnnotationMetadataFromType(Class clazz){
        return AnnotationMetadata.introspect(clazz);
    }
}
